﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Supply_List.aspx.cs" Inherits="masterdata_Supply_List" MasterPageFile="~/MasterPage.master" %>
 <%@ Register Src="~/UserControl/GridPager.ascx" TagName="GridPager"  TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <title>供应商列表</title>
        <script src="../JavaScript/common.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <div>
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle" colspan="5">
                    <asp:Literal ID="Literal4" runat="server" Text="<%$resources:language,lbl_Query_Condition %>"></asp:Literal>
                </td>
            </tr>
            <tr>
               
                <td class="tablefield">
                    关键字:
                </td>
                <td nowrap="nowrap">
                    <asp:TextBox runat="server" ID="txtKeyword" MaxLength="20"  class="default"  ></asp:TextBox>
                </td>
               
                <td class="tablefield">
                    状态
                </td>
                <td>
                    <asp:DropDownList ID="ddlValid" runat="server" Width="150">
                        <asp:ListItem Value="-1" Text="--所有--"></asp:ListItem>
                        <asp:ListItem Value="1" Text="有效" Selected="True"></asp:ListItem>
                        <asp:ListItem Value="0" Text="无效"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="buttonarea" >
                    

                    <asp:Button ID="btnQuery" runat="server" class="wsd_button2" Text="<%$resources:language,btn_Query %>"
                        OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle">
                    供应商列表
                </td>
                
            </tr>
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView Width="100%" ID="gvSupply" runat="server" AutoGenerateColumns="false"
                        EmptyDataText="<%$resources:language,lbl_Empty %>" EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-HorizontalAlign="Center"
                        EnableEmptyContentRender="true" AllowPaging="True" GridLines="None"
                        OnPageIndexChanging="gvSupply_PageIndexChanging" PageSize="10">
                        <HeaderStyle CssClass="titlist" />
                        <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFormatString="Supply_Maintain.aspx?id={0}" DataNavigateUrlFields="ID"
                                DataTextField="CODE" HeaderText="编号" ControlStyle-Font-Underline="false">
                                <ControlStyle Font-Underline="False"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:BoundField HeaderText="名称" DataField="NAME" />
                            <asp:BoundField HeaderText="地址" DataField="ADDRESS" />
                            <asp:BoundField HeaderText="联系人" DataField="CONTACT" />
                            <asp:BoundField HeaderText="固定电话" DataField="TEL" />
                            <asp:BoundField HeaderText="手机" DataField="MOBILE" />
                            <asp:TemplateField HeaderText="有效" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center">
                                <ItemTemplate>
                                    <b>
                                        <%# Eval("ACTIVE").ToString()  == "True" ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%></b>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="evenline" />
                        <AlternatingRowStyle CssClass="oddline" />
                        <PagerSettings Visible="false"  />
                    </asp:GridView>
                      <uc1:GridPager ID="GridPager1" runat="server" Visible="false"  />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle">
                    <asp:Literal ID="Literal12" runat="server" Text="<%$resources:language,lbl_Operation_Area %>"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="buttonarea">
                    <input id="btnNew" type="button" value="新  增" runat="server" class="wsd_button2" onclick="location.href='Supply_Maintain.aspx'" />
                </td>
            </tr>
        </table>
    </div>
 </asp:Content>
